home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: Jeff Jenkins <jjenkins@wpo.borland.com>
- Newsgroups: comp.lang.c++
- Subject: Re: BC++. Pls help me with precompiled headers...
- Date: Thu, 22 Feb 1996 11:36:55 -0800
- Organization: Borland International
- Message-ID: <312CC5D7.29F8@wpo.borland.com>
- References: <Dn65GG.M19@twisto.eng.hou.compaq.com>
- NNTP-Posting-Host: beastly.borland.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I)
-
- jhenell@bangate.eur.compaq.com wrote:
- >
- > Using Borland C++ v4.52:
- >
- > I get these (for me) rather confusing error messages.
- >
- > When compiling I get the following error message:
- > "Warning LEATHER.CPP 47: Cannot create pre-compiled header: code in
- > header"
- > (the 47th line is the constructor of one of the classes,
- > "Leather::Leather() (" )This^^^^^^^^^^^^^^^^ ctor is a non-inline method. This is, the
- definition of the function body is going to be generated each time you
- #include the header-file that contains this definition. That's why you
- see the errors below: you have #include'd the header file in more than
- one source module, and therfore forced the compiler to generate multiple
- definitions. The linker see's all these function definitions and starts
- to complain because it is confused as which one you want it to use.
-
- -- jrj
-
- > This time it went through the compilation, but not the
- > Building/Linking:
- > Linker Error: Leather::Leather() defined in module LEATHER.CPP is
- > duplicated in module RUBBER.CPP
- > and this Error is repeated for all methods in the class.
- > / a newbie feelin' lame & frustrated..
-